#include <iostream>
#include "XMLDocTest.h"

using namespace std;

int main()
{
	//testing the Functios of XMLDocument 
	xml_document_test doctest;

	//xml_document function 1 test
	if(doctest.load_from_string_test()==1) 
	{
		cout<<"Error in function Load From String in Xml_Document Class"<<endl;
	}
	

	//xml_document function 2 test
	if(doctest.load_from_file_test()==1) 
	{
		cout<<"Error in function Load From File in Xml_Document Class"<<endl;
	}

	//xml_document function 3 test
	if(doctest.get_root_node_test()==1) 
	{
		cout<<"Error in function retrieving the root node"<<endl;
	}

	//xml_document function 4 test
	if(doctest.get_elements_by_tag_name_test()==1) 
	{
		cout<<"Error in function retrieving elements by tag name"<<endl;
	}

	else
		return 0;
	
}